import Mock from 'mockjs' // 引入mockjs
 
const Random = Mock.Random // Mock.Random 是一个工具类，用于生成各种随机数据
 
let data =  [{
    no: '20200001',
    name: '四川土鸭',
    control: '是'
}, {
    no: '20200002',
    name: '新疆白毛鸭',
    control: '是'
}, {
    no: '20200003',
    name: '四川大鸭',
    control: '是'
}, {
    no: '20200004',
    name: '新疆黄毛鸭',
    control: '是'
}]
 
Mock.mock('/action/site_info', 'get', data) // 根据数据模板生成模拟数据